package com.atom.app.mvvm

import androidx.lifecycle.ViewModel
import com.atom.app.mvvm.ui.activities.WelcomeViewModel
import com.atom.module.mvvm.base.viewmodel.AbstractViewModelFactory

object VMFactory : AbstractViewModelFactory() {

    override fun <T : ViewModel> create(modelClass: Class<T>): T {
        if (modelClass.isAssignableFrom(WelcomeViewModel::class.java)) {
            return WelcomeViewModel() as T
        }
        return super.create(modelClass)
    }
}
